<template>
    <view class="activity-pages">
        <!-- 预览图片 -->
        <!-- <savefile :url="qrUrl"></savefile> -->

        <!-- 方框数字输入 -->
        <!-- <validcode></validcode> -->

        <!-- 金额动效 -->
        <!-- <view>
			<countup :num="num" color="#ff9e50" width='13' height='23' fontSize='23'></countup>
			<van-button @tap="add">Add</van-button>
			<van-button @tap="reduce">Reduce</van-button>
		</view> -->

        <!-- <loading></loading> -->

        <view class="container">
            <van-button @click="copyBtn('hello')" type='primary'>文本复制</van-button>
        </view>

        <!-- 数字键盘 -->
        <!-- <digit-keyboard :inputVal="inputVal" :label="label" @cancel="isShowKeyboardWindow = false" @confirm="keyboardConfirm"></digit-keyboard> -->

    </view>
</template>



<script>
import savefile from '../../components/saveFile.vue'
import validcode from '../../components/validCode.vue'
import countup from '../../components/countUp.vue'
import loading from '@components/loading/index.vue'
import digitKeyboard from '@components/digitKeyboard.vue'

import { copyTxt } from '@common/utils'

export default {
    components: {
        savefile,
        validcode,
        countup,
        loading,
        digitKeyboard
    },
    data() {
        return {
            num: 121.653,
            inputVal: '1',
            label: '现金支付',
            isShowKeyboardWindow: true, // 是否显示键盘窗口
            qrUrl: '/static/image/common/img1.jpg'
        };
    },
    onLoad() { },
    methods: {
        add() {
            this.num = ++this.num
        },
        reduce() {
            this.num = --this.num
        },
        copyBtn(txt) {
            copyTxt(txt)
        },
        keyboardConfirm(val) {
            console.log(val)
            uni.showToast({
                title: '当前输入的值:' + val,
                icon: 'none',
                duration: 4000
            })
        }
    }
};
</script>

<style lang="less" scoped>
.activity-pages {
    .container {
        padding: 30rpx;
    }
}
</style>